{% for friend in friends %}
    <a href="/personalIndex/{{ friend.user.id }}/">{{ friend.user.username }}</a><br>
{% endfor %}